﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Create_Cemetery.Aspx.cs"
    Inherits="Users_Create_Cemetery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <asp:PlaceHolder Visible="false" runat="server">

        <script src="../Script/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>

    </asp:PlaceHolder>
    <%=this.UI_Head(Base_CurrPath, "", "")%>
    <link rel="stylesheet" type="text/css" href="../Css/Users.css" />
    <link href="../Script/formValidator/style/validator.css" rel="stylesheet" type="text/css" />

    <script src="../Script/formValidator/jquery_last.js" type="text/javascript"></script>

    <script src="../Script/formValidator/formValidator.js" type="text/javascript"></script>

    <script src="../Script/formValidator/formValidatorRegex.js" type="text/javascript"></script>

    <script language="javascript" src="../Script/formValidator/DateTimeMask.js" type="text/javascript"></script>

    <script src="../Script/ConvertTime.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $.formValidator.initConfig({ alertmessage: false, formid: "memorial_Form", onerror: function(msg) { alert(msg) } });
            $("#Txt_Name").formValidator({ onshow: "请输入陵园名称", onfocus: "陵园名称不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 30, empty: { leftempty: false, rightempty: false, emptyerror: "两边不能有空符号" }, onerror: "陵园名称长度必须在1-30位,请确认" });
        });
      
    </script>

    <script src="../Script/province.aspx"></script>

    <script src="../Script/popup.js"></script>

</head>
<body>
    <%=this.UI_TopControl()%>
    <div class="topbanner bodyList">
        <div class="body_995">
            <div class="Member_left">
                <%=this.UI_Users_loginOK()%>
                <%=this.UI_UsersDhtList() %>
            </div>
            <div class="Member_Right">
                <form runat="server" id="memorial_Form">
                <div class="Member_right_dht">
                    <img src="../Images/class_hy.jpg" /></div>
                <div class="Member_right_CntLIst">
                    <asp:Panel ID="Panel2" runat="server">
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <table width="100" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="12%">
                                    <img src="../images/zh17.jpg" width="90" height="73" />
                                </td>
                                <td width="88%">
                                    <table width="461" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td>
                                                <img src="../images/zh7.jpg" width="461" height="2" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="36" background="../images/zh6.jpg">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="5%">
                                                            &nbsp;
                                                        </td>
                                                        <td width="95%">
                                                            <strong>客服提醒:</strong>
                                                            <br />
                                                            您现在不能建立家族陵园,建立家族陵园需要至少先建立<%=configInfo.lygsNum%>个正式的纪念馆
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="30" background="../images/zh5.jpg">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="Panel1" runat="server" Visible="false">
                        <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
                            <tr>
                                <td height="25" align="center" bgcolor="#E3DEBE" class="title">
                                    <strong>创建新的陵园</strong>
                                </td>
                            </tr>
                            <tr align="center" class="tdbg">
                                <td>
                                    <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
                                        <tr class="tdbg">
                                            <td height="40" align="left" colspan="2">
                                                <span style="color: red;">『模板选择以后将不能更改,选择模板之前请确定您已经创建了<%=configInfo.lygsNum%>个纪念馆』</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="18%" align="center" style="padding: 4px;">
                                                <strong>陵园馆号: </strong>
                                            </td>
                                            <td width="82%" align="left" style="padding: 4px;" class="tdIndiv">
                                                <div>
                                                    <asp:TextBox ID="Txt_Number" runat="server"></asp:TextBox></div>
                                                <div id="Txt_NumberTip">
                                                    <span style="color: Red;">*</span></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="18%" align="center" style="padding: 4px;">
                                                <strong>陵园名称: </strong>
                                            </td>
                                            <td width="82%" align="left" style="padding: 4px;" class="tdIndiv">
                                                <div>
                                                    <asp:TextBox ID="Txt_Name" runat="server" MaxLength="30" Width="275px"></asp:TextBox></div>
                                                <div id="Txt_NameTip">
                                                    *建议使用中文，限30个字以内</div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="18%" align="center" style="padding: 4px;">
                                                <strong>所属分站: </strong>
                                            </td>
                                            <td width="82%" align="left" style="padding: 4px;">
                                                <select id="province" name="province" onchange="changeProvince(document.getElementById('province'),document.getElementById('city'));">
                                                </select>
                                                <select id="city" name="city">
                                                </select>

                                                <script language="javascript" type="text/javascript">
                                                    initialize(document.getElementById('province'), document.getElementById('city'), "23", "195");
                                                </script>

                                            </td>
                                        </tr>
                                        <tr style="padding:2px;">
                                            <td width="18%" align="center" style="padding: 4px;">
                                                <strong>背景音乐: </strong>
                                            </td>
                                            <td width="82%" align="left" style="padding: 4px;" class="tdIndiv">
                                                <asp:DropDownList ID="ddlMusic" runat="server" />&nbsp;
                                            </td>
                                      </tr>
                                        <tr>
                                            <td width="18%" align="center" style="padding: 4px;">
                                                <strong>选择模板: </strong>
                                            </td>
                                            <td width="82%" align="left" style="padding: 4px;">
                                                <asp:DataList ID="DataList1" runat="server" RepeatColumns="3" RepeatDirection="Horizontal">
                                                    <ItemTemplate>
                                                        <table border="0" cellpadding="0" cellspacing="5" width="100%" align="center">
                                                            <tr>
                                                                <td align="center">
                                                                    <img height="200" src="<%#configInfo.InstallDir + Eval("Thumbimg")%>" width="150" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="center">
                                                                     <input type="radio" value='<%#Eval("id") %>' name="TempleID" id="TempleID" <%#IsEnabled(Eval("point")) %>    /><%#AspNetCs.Common.StringHelper.stringformat(Eval("TempleName").ToString(),15)%><br />
                                                                   <%#AspNetCs.Bll.TempleBll.CreateNew.TemplePointStr(Eval("point","{0:#.##}"))%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                </asp:DataList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="18%" align="center" style="padding: 4px;">
                                                &nbsp;
                                            </td>
                                            <td width="82%" align="left" style="padding: 4px;">
                                                <asp:Button ID="Button1" runat="server" Text="立即创建" OnClick="Button1_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </div>
                </form>
            </div>
        </div>
        <br />
    </div>
    <%=UI_boot() %>
</body>
</html>
